package com.eaoa.vo.bus.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the bus_score table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="bus_score"
 */

public abstract class BaseBusScore  implements Serializable {

	public static String REF = "BusScore";
	public static String PROP_AVAILABLE = "available";
	public static String PROP_SOURCE = "source";
	public static String PROP_ACCOUNTNO = "accountno";
	public static String PROP_VALUE = "value";
	public static String PROP_SCORENO = "scoreno";
	public static String PROP_USERNAME = "username";
	public static String PROP_CREATEDATE = "createdate";


	// constructors
	public BaseBusScore () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseBusScore (java.lang.Long scoreno) {
		this.setScoreno(scoreno);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Long scoreno;

	// fields
	private java.lang.Long accountno;
	private java.lang.Long available;
	private java.util.Date createdate;
	private java.lang.String source;
	private java.lang.String username;
	private java.lang.Long value;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="increment"
     *  column="scoreno"
     */
	public java.lang.Long getScoreno () {
		return scoreno;
	}

	/**
	 * Set the unique identifier of this class
	 * @param scoreno the new ID
	 */
	public void setScoreno (java.lang.Long scoreno) {
		this.scoreno = scoreno;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: accountno
	 */
	public java.lang.Long getAccountno () {
		return accountno;
	}

	/**
	 * Set the value related to the column: accountno
	 * @param accountno the accountno value
	 */
	public void setAccountno (java.lang.Long accountno) {
		this.accountno = accountno;
	}



	/**
	 * Return the value associated with the column: available
	 */
	public java.lang.Long getAvailable () {
		return available;
	}

	/**
	 * Set the value related to the column: available
	 * @param available the available value
	 */
	public void setAvailable (java.lang.Long available) {
		this.available = available;
	}



	/**
	 * Return the value associated with the column: createdate
	 */
	public java.util.Date getCreatedate () {
		return createdate;
	}

	/**
	 * Set the value related to the column: createdate
	 * @param createdate the createdate value
	 */
	public void setCreatedate (java.util.Date createdate) {
		this.createdate = createdate;
	}



	/**
	 * Return the value associated with the column: source
	 */
	public java.lang.String getSource () {
		return source;
	}

	/**
	 * Set the value related to the column: source
	 * @param source the source value
	 */
	public void setSource (java.lang.String source) {
		this.source = source;
	}



	/**
	 * Return the value associated with the column: username
	 */
	public java.lang.String getUsername () {
		return username;
	}

	/**
	 * Set the value related to the column: username
	 * @param username the username value
	 */
	public void setUsername (java.lang.String username) {
		this.username = username;
	}



	/**
	 * Return the value associated with the column: value
	 */
	public java.lang.Long getValue () {
		return value;
	}

	/**
	 * Set the value related to the column: value
	 * @param value the value value
	 */
	public void setValue (java.lang.Long value) {
		this.value = value;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.eaoa.vo.bus.BusScore)) return false;
		else {
			com.eaoa.vo.bus.BusScore busScore = (com.eaoa.vo.bus.BusScore) obj;
			if (null == this.getScoreno() || null == busScore.getScoreno()) return false;
			else return (this.getScoreno().equals(busScore.getScoreno()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getScoreno()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getScoreno().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}